﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DBLGen.QueryBuilder.Enums;

namespace DBLGen.QueryBuilder.Clauses
{
	/// <summary>
	/// Represents a TOP clause for SELECT statements
	/// </summary>
	public struct TopClause
	{
		public int Quantity;
		public TopUnit Unit;
		public TopClause(int nr)
		{
			Quantity = nr;
			Unit = TopUnit.Records;
		}
		public TopClause(int nr, TopUnit aUnit)
		{
			Quantity = nr;
			Unit = aUnit;
		}
	}
}
